import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { SharedModule } from 'src/app/shared/shared.module';

// 导入 ngx-echarts
import { NgxEchartsModule } from 'ngx-echarts';

import { BulletinBoardComponent } from './pages/bulletin-board.component';
import { BulletinDashboardComponent } from './pages/bulletin-dashboard/bulletin-dashboard.component';



const routes: Routes = [
  {
    path: '', component: BulletinBoardComponent, children: [
      {
        path: '', component: BulletinDashboardComponent,
        data: { breadcrumb: '看板' }
      },
      { path: 'bulletin-dashboard', component: BulletinDashboardComponent }
    ]
  },
];

@NgModule({
  // 导入路由配置和共享模版
  imports: [
    SharedModule,
    NgxEchartsModule,
    RouterModule.forChild(routes)
  ],
  declarations: [
    BulletinBoardComponent,
    BulletinDashboardComponent
  ]
})
export class BulltinBoardModule { }
